/**
 * @file message.constants.js
 * @description 响应消息常量定义
 */

// 通用响应消息
export const CommonMessage = {
    SUCCESS: "操作成功",
    ERROR: "操作失败",
    INVALID_PARAMS: "无效的参数",
    DUPLICATE_ERROR: "数据已存在",
    SERVER_ERROR: "服务器内部错误",
    RESOURCE_NOT_FOUND: '请求的资源不存在',
    AUTHENTICATION_REQUIRED: '需要进行身份验证',
    ACCESS_DENIED: '没有访问权限'
};

// 用户相关响应消息
export const UserMessage = {
    EMAIL_EXISTS: "该邮箱已被注册",
    REGISTER_SUCCESS: "注册成功",
    LOGIN_ERROR: "邮箱或密码错误",
    ACCOUNT_DISABLED: "账户已被禁用",
    UNAUTHORIZED: "未提供身份验证token",
    FORBIDDEN: "访问被拒绝",
    PERMISSION_DENIED: "权限不足",
    MISSING_INFO: "请求中缺少用户信息"
};

// 认证相关响应消息
export const AuthMessage = {
    TOKEN_EXPIRED: "Token已过期",
    TOKEN_INVALID: "无效的Token",
    TOKEN_MISSING: "缺少Token",
    LOGOUT_SUCCESS: '账号已经退出登录',
};